<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>
 
<script>
	export default {
		data() {
			return {
				showPreview:false,
				viewerUrl:'http://www.pfile.com.cn/api/profile/onlinePreview?url=',
				url: '',//PDF路径
			};
		},
		onLoad(option) {
			console.log('=>进入了PDF预览页面')
			console.log('获取的参数=>',option)
			// this.url =this.viewerUrl+encodeURIComponent("http://bowei.bysmartcity.cn:8000/extension/file/preview?fileName="+option.url); // encodeURIComponent 函数可把字符串作为 URI 组件进行编码;
			this.url = "http://bowei.bysmartcity.cn:8000/extension/file/preview?fileName=Fk5cFjpo1bkxpO6BnybcEv7vlKVJ.pdf"
			console.log(this.url,'====');
		},
		methods: {
			
		}
	}
</script>
 
<style>
 
</style>